package Market;

public class Market {
	Product [] productList;
	String name;
	
	public Product sell(String proName){
		for(int i=0;i<productList.length;i++){
			String _proName = productList[i].getName();
			if(_proName.equals(proName)){
				return productList[i];
			}
			
			
		}
		
		return null;
		
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	 public void setProductList(Product[] productList) {
		this.productList = productList;
	}
	 public Product[] getProductList() {
		return productList;
	}
	 


}
